﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Alos.Common;
using Alos.Entity;
using Alos.IService;

namespace Alos.LanClass.Api
{
    /// <summary>
    /// 学生试题答题详情记录表
    /// </summary>
    public class ReExamDetailController : ApiController
    {
         IReExamDetailService ReExamDetailService;
        /// <summary>
        /// 构造函数
        /// </summary>
         /// <param name="_ReExamDetailService"></param>
         public ReExamDetailController(IReExamDetailService _ReExamDetailService)
        {
            ReExamDetailService = _ReExamDetailService;
        }
        /// <summary>
        /// 学生课堂测验提交表
         /// <param name="ReExamDetail"></param>
        /// <returns></returns>
        /// </summary>
        [HttpPost]
        [Route("api/ReExamDetail/CreateReExamDetail")]
         public JsonRtn<dynamic> CreateReExamDetail([FromBody]ReExamDetail ReExamDetail)
        {
            var jsRtn = new JsonRtn<dynamic>();
            jsRtn.message = ReExamDetailService.CreatReExamDetail(ReExamDetail).ToString();
            return jsRtn;
        }
    }
}
